import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios";
import 'amfe-flexible'
import VueWechatTitle from 'vue-wechat-title'
Vue.use(VueWechatTitle)
//关闭console提示
Vue.config.productionTip = false
axios.interceptors.request.use(function (config) {
  store.state.loading = true; //在请求前进行一些操作
  return config
})
axios.interceptors.response.use(function (response) {
  store.state.loading = false
  return response
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
